/* 
 * File:   newmain.c
 * Author: rodrigo
 *
 * Created on April 23, 2010, 9:56 PM
 */

#include <stdio.h>
#include <libplayerc/playerc.h>
#include "RobotHeader.h"



/*
 * 
 */
int main(int argc, const char **argv){

    int i,porta,chosen,chaser;
    Robo BlueTeam[MAX_TEAM],RedTeam[MAX_TEAM];

    
    porta=6665;
    for(i=0;i<MAX_TEAM;i++){
        InicializaRobo(&BlueTeam[i],"localhost",porta,yellow,'B');
        porta++;
    }

    porta=6670;
    for(i=0;i<MAX_TEAM;i++){
        InicializaRobo(&RedTeam[i],"localhost",porta,green,'R');
        porta++;
    }
   


 while(1){
     for(i=0;i<MAX_TEAM;i++){
         stateManager(&BlueTeam[i],BlueTeam);
         stateManager(&RedTeam[i],RedTeam);
     }
  }
}
